package com.data.modules.online.cgform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("onl_cgform_enhance_js")
public class OnlCgformEnhanceJs implements Serializable {
    private static final long serialVersionUID = 1;
    private String cgJs;
    private String cgJsType;
    private String cgformHeadId;
    private String content;
    @TableId(type = IdType.ASSIGN_UUID)

    private String id;


    public boolean canEqual(Object other) {
        return other instanceof OnlCgformEnhanceJs;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlCgformEnhanceJs)) {
            return false;
        }
        OnlCgformEnhanceJs onlCgformEnhanceJs = (OnlCgformEnhanceJs) o;
        if (!onlCgformEnhanceJs.canEqual(this)) {
            return false;
        }
        String id = getId();
        String id2 = onlCgformEnhanceJs.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String cgformHeadId2 = getCgformHeadId();
        String cgformHeadId3 = onlCgformEnhanceJs.getCgformHeadId();
        if (cgformHeadId2 != null ? !cgformHeadId2.equals(cgformHeadId3) : cgformHeadId3 != null) {
            return false;
        }
        String cgJsType2 = getCgJsType();
        String cgJsType3 = onlCgformEnhanceJs.getCgJsType();
        if (cgJsType2 != null ? !cgJsType2.equals(cgJsType3) : cgJsType3 != null) {
            return false;
        }
        String cgJs2 = getCgJs();
        String cgJs3 = onlCgformEnhanceJs.getCgJs();
        if (cgJs2 != null ? !cgJs2.equals(cgJs3) : cgJs3 != null) {
            return false;
        }
        String content2 = getContent();
        String content3 = onlCgformEnhanceJs.getContent();
        if (content2 == null) {
            if (content3 == null) {
                return true;
            }
        } else if (content2.equals(content3)) {
            return true;
        }
        return false;
    }

    @Override
    public int hashCode() {
        int i = 43;
        String id = getId();
        int hashCode = id == null ? 43 : id.hashCode();
        String cgformHeadId2 = getCgformHeadId();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = cgformHeadId2 == null ? 43 : cgformHeadId2.hashCode();
        String cgJsType2 = getCgJsType();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = cgJsType2 == null ? 43 : cgJsType2.hashCode();
        String cgJs2 = getCgJs();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = cgJs2 == null ? 43 : cgJs2.hashCode();
        String content2 = getContent();
        int i5 = (hashCode4 + i4) * 59;
        if (content2 != null) {
            i = content2.hashCode();
        }
        return i5 + i;
    }

    public void setCgJs(String cgJs2) {
        this.cgJs = cgJs2;
    }

    public void setCgJsType(String cgJsType2) {
        this.cgJsType = cgJsType2;
    }

    public void setCgformHeadId(String cgformHeadId2) {
        this.cgformHeadId = cgformHeadId2;
    }

    public void setContent(String content2) {
        this.content = content2;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "OnlCgformEnhanceJs(id=" + getId() + ", cgformHeadId=" + getCgformHeadId() + ", cgJsType=" + getCgJsType() + ", cgJs=" + getCgJs() + ", content=" + getContent() + ")";
    }

    public String getId() {
        return this.id;
    }

    public String getCgformHeadId() {
        return this.cgformHeadId;
    }

    public String getCgJsType() {
        return this.cgJsType;
    }

    public String getCgJs() {
        return this.cgJs;
    }

    public String getContent() {
        return this.content;
    }
}
